<?php $this->renderPartial('//common/header'); ?>
<!-- CONTENT CONTAINER -->
<div class="container">
	<ul class="breadcrumb">
		<li><a href="<?php echo PIUrl::createUrl('/home/');?>"><?php echo translate("Trang chủ"); ?></a></li>
		<li><span><?php echo translate("Tin tức"); ?></span></li>
	</ul>
	<div class="content-container row">
		<!-- MAIN CONTENT -->
		<div class="col-md-8 main-content">
			<div class="news">
			<?php if(!empty($arrInfo)){ ?>
					<div class="lg">
						<div class="img-liquid">
							<a href="<?php echo PIUrl::createUrl('/home/newsDetail/', array('alias' => $arrInfo[0]->alias));?>"><img src="<?php echo getImage($arrInfo[0]->image,750, 354); ?>" alt="img" width="370" height="170" /></a>
						</div>
						<h3 title="<?php echo $arrInfo[0]->name; ?>" class="title-sm"><a href="<?php echo PIUrl::createUrl('/home/newsDetail/', array('alias' => $arrInfo[0]->alias));?>"><?php echo $this->word_limiter($arrInfo[0]->name, 18); ?></a></h3>
						<p><?php echo $this->word_limiter($arrInfo[0]->description, 45); ?></p>
						<p class="date-post"><?php echo "Đăng ngày ".date("d/m/Y",$arrInfo[0]->created); ?></p>
					</div>
					<ul class="md row">
						<?php for($i=1; $i<count($arrInfo); $i++){ ?>
							<li class="col-md-6 col-sm-6">
								<div class="img-liquid">
									<a href="<?php echo PIUrl::createUrl('/home/newsDetail/', array('alias' => $arrInfo[$i]->alias));?>"><img src="<?php echo getImage($arrInfo[$i]->image,360, 170); ?>" alt="img" width="170" height="78" /></a>
								</div>
								<h3 title="<?php echo $arrInfo[$i]->name; ?>" class="title"><a href="<?php echo PIUrl::createUrl('/home/newsDetail/', array('alias' => $arrInfo[$i]->alias));?>"><?php echo $this->word_limiter($arrInfo[$i]->name, 10); ?></a></h3>
								<div class="wrap-content-detail">
									<p title="<?php echo $arrInfo[$i]->description; ?>" ><?php echo $this->word_limiter($arrInfo[$i]->description, 8); ?></p>
								</div>
								<p class="date-post"><?php echo "Đăng ngày ".date("d/m/Y",$arrInfo[$i]->created); ?></p>
							</li>
						<?php } ?>
					</ul>
					<?php
						$this->widget('CLinkPager', array(
							'currentPage'=>$pages->getCurrentPage(),
							'itemCount'=>$item_count,
							'pageSize'=>$page_size,
							'maxButtonCount'=>5,
							//'nextPageLabel'=>'My text >',
							'header'=>'',
							'htmlOptions'=>array('class'=>'cus-pagination'),
						));
					?>
				<?php }else{ echo translate("Không tìm thấy bài viết!"); } ?>
			</div>
		</div>
		<!-- SIDEBAR -->
		<div class="col-md-4 sidebar">
			<!-- BLOCK MẪU HỢP ĐỒNG GIAO DỊCH -->
			<?php $this->widget("application.components.widgetDocument"); ?>

			<!-- BLOCK HỎI ĐÁP -->
			<?php $this->widget("application.components.widgetQuestionAnswers"); ?>
		</div>
	</div>
</div>

<!-- FULL BLOCK HÌNH ẢNH HOẠT ĐỘNG -->
<?php $this->widget("application.components.widgetImages"); ?>


<div id="push"> </div>
</div>
<script>
$(document).ready(function(){
	$(".selected a").css("background-color", "#073B66");
});
</script>
<?php $this->renderPartial('//common/footer'); ?>